package com.beiding.my.query.leader.compare;

import com.beiding.my.query.ParamHolder;
import com.beiding.my.query.leader.Compare;

/**
 *
 * > = < 等都是双目操作
 *
 */
public class Binary implements Compare {

    private String field;
    private String symbol;
    private Object value;

    public Binary(String field, String symbol, Object value) {
        this.field = field;
        this.symbol = symbol;
        this.value = value;
    }

    @Override
    public String create(ParamHolder paramHolder) {

        return field + " " + symbol + " " + paramHolder.set(value);
    }
}
